import _ from 'lodash'
import {createApp} from 'vue'
import App from './App.vue'
import {setupStore} from './store'
import router from './router'
import * as OneCodeVue from '@/index'
import {SystemExtend} from "./SystemExtend"

import './project.css'

const app = createApp(App)
setupStore(app);

function main() {
    window['_'] = _
    window['system'] = new SystemExtend()
    window['OneCodeVue'] = OneCodeVue

    import('./demo_app_lang/index').then(i18n => {
        app.use(router).use(i18n['default']).use(OneCodeVue)
        OneCodeVue.installStudio(app, router)
        app.mount('#app');
    })
}

main()